package com.av.bcacc.myapidemo.base;


import android.view.View;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;

/**
 * Created by Weiliang Hu on 2017/10/7.
 */

public class BaseReclyerviewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {

    private T itemBinder;

    public BaseReclyerviewHolder(View itemView) {
        super(itemView);
        this.itemBinder = DataBindingUtil.bind(itemView);
    }

    public T getItemBinder() {
        return itemBinder;
    }

    public void setItemBinder(T itemBinder) {
        this.itemBinder = itemBinder;
    }
}
